﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000691 RID: 1681
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChessRogueStoryInfoScRsp : IMessage<GetChessRogueStoryInfoScRsp>, IMessage, IEquatable<GetChessRogueStoryInfoScRsp>, IDeepCloneable<GetChessRogueStoryInfoScRsp>, IBufferMessage
	{
		// Token: 0x170015B1 RID: 5553
		// (get) Token: 0x06004BD6 RID: 19414 RVA: 0x000CFEBF File Offset: 0x000CE0BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChessRogueStoryInfoScRsp> Parser
		{
			get
			{
				return GetChessRogueStoryInfoScRsp._parser;
			}
		}

		// Token: 0x170015B2 RID: 5554
		// (get) Token: 0x06004BD7 RID: 19415 RVA: 0x000CFEC6 File Offset: 0x000CE0C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChessRogueStoryInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015B3 RID: 5555
		// (get) Token: 0x06004BD8 RID: 19416 RVA: 0x000CFED8 File Offset: 0x000CE0D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChessRogueStoryInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004BD9 RID: 19417 RVA: 0x000CFEDF File Offset: 0x000CE0DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueStoryInfoScRsp()
		{
		}

		// Token: 0x06004BDA RID: 19418 RVA: 0x000CFF00 File Offset: 0x000CE100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueStoryInfoScRsp(GetChessRogueStoryInfoScRsp other) : this()
		{
			this.chessRogueSubStoryInfo_ = other.chessRogueSubStoryInfo_.Clone();
			this.chessRogueMainStoryInfo_ = other.chessRogueMainStoryInfo_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004BDB RID: 19419 RVA: 0x000CFF52 File Offset: 0x000CE152
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueStoryInfoScRsp Clone()
		{
			return new GetChessRogueStoryInfoScRsp(this);
		}

		// Token: 0x170015B4 RID: 5556
		// (get) Token: 0x06004BDC RID: 19420 RVA: 0x000CFF5A File Offset: 0x000CE15A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<JEACKCHJHHN> ChessRogueSubStoryInfo
		{
			get
			{
				return this.chessRogueSubStoryInfo_;
			}
		}

		// Token: 0x170015B5 RID: 5557
		// (get) Token: 0x06004BDD RID: 19421 RVA: 0x000CFF62 File Offset: 0x000CE162
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BJGNJMEPIAL> ChessRogueMainStoryInfo
		{
			get
			{
				return this.chessRogueMainStoryInfo_;
			}
		}

		// Token: 0x170015B6 RID: 5558
		// (get) Token: 0x06004BDE RID: 19422 RVA: 0x000CFF6A File Offset: 0x000CE16A
		// (set) Token: 0x06004BDF RID: 19423 RVA: 0x000CFF72 File Offset: 0x000CE172
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004BE0 RID: 19424 RVA: 0x000CFF7B File Offset: 0x000CE17B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChessRogueStoryInfoScRsp);
		}

		// Token: 0x06004BE1 RID: 19425 RVA: 0x000CFF8C File Offset: 0x000CE18C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChessRogueStoryInfoScRsp other)
		{
			return other != null && (other == this || (this.chessRogueSubStoryInfo_.Equals(other.chessRogueSubStoryInfo_) && this.chessRogueMainStoryInfo_.Equals(other.chessRogueMainStoryInfo_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004BE2 RID: 19426 RVA: 0x000CFFF0 File Offset: 0x000CE1F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.chessRogueSubStoryInfo_.GetHashCode();
			num ^= this.chessRogueMainStoryInfo_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004BE3 RID: 19427 RVA: 0x000D004B File Offset: 0x000CE24B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004BE4 RID: 19428 RVA: 0x000D0053 File Offset: 0x000CE253
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004BE5 RID: 19429 RVA: 0x000D005C File Offset: 0x000CE25C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.chessRogueSubStoryInfo_.WriteTo(ref output, GetChessRogueStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			this.chessRogueMainStoryInfo_.WriteTo(ref output, GetChessRogueStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004BE6 RID: 19430 RVA: 0x000D00BC File Offset: 0x000CE2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.chessRogueSubStoryInfo_.CalculateSize(GetChessRogueStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
			num += this.chessRogueMainStoryInfo_.CalculateSize(GetChessRogueStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004BE7 RID: 19431 RVA: 0x000D0120 File Offset: 0x000CE320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChessRogueStoryInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.chessRogueSubStoryInfo_.Add(other.chessRogueSubStoryInfo_);
			this.chessRogueMainStoryInfo_.Add(other.chessRogueMainStoryInfo_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004BE8 RID: 19432 RVA: 0x000D017E File Offset: 0x000CE37E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004BE9 RID: 19433 RVA: 0x000D0188 File Offset: 0x000CE388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 72U)
					{
						if (num != 114U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.chessRogueMainStoryInfo_.AddEntriesFrom(ref input, GetChessRogueStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.chessRogueSubStoryInfo_.AddEntriesFrom(ref input, GetChessRogueStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
				}
			}
		}

		// Token: 0x04001E06 RID: 7686
		private static readonly MessageParser<GetChessRogueStoryInfoScRsp> _parser = new MessageParser<GetChessRogueStoryInfoScRsp>(() => new GetChessRogueStoryInfoScRsp());

		// Token: 0x04001E07 RID: 7687
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E08 RID: 7688
		public const int ChessRogueSubStoryInfoFieldNumber = 8;

		// Token: 0x04001E09 RID: 7689
		private static readonly FieldCodec<JEACKCHJHHN> _repeated_chessRogueSubStoryInfo_codec = FieldCodec.ForMessage<JEACKCHJHHN>(66U, JEACKCHJHHN.Parser);

		// Token: 0x04001E0A RID: 7690
		private readonly RepeatedField<JEACKCHJHHN> chessRogueSubStoryInfo_ = new RepeatedField<JEACKCHJHHN>();

		// Token: 0x04001E0B RID: 7691
		public const int ChessRogueMainStoryInfoFieldNumber = 14;

		// Token: 0x04001E0C RID: 7692
		private static readonly FieldCodec<BJGNJMEPIAL> _repeated_chessRogueMainStoryInfo_codec = FieldCodec.ForMessage<BJGNJMEPIAL>(114U, BJGNJMEPIAL.Parser);

		// Token: 0x04001E0D RID: 7693
		private readonly RepeatedField<BJGNJMEPIAL> chessRogueMainStoryInfo_ = new RepeatedField<BJGNJMEPIAL>();

		// Token: 0x04001E0E RID: 7694
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04001E0F RID: 7695
		private uint retcode_;
	}
}
